import java.awt.Dimension;
import java.awt.Toolkit;

import javax.swing.JFrame;

/**
 * 
 */

/**
 * @author Abubakr
 * 
 */
public class Main {

	public Main() {
		JFrame frame = new JFrame();
		PacMan pacman = new PacMan();
		Board board = new Board(pacman);
		frame.setContentPane(board);
		frame.setSize(500,500);
		frame.setResizable(false);
		frame.setTitle("PacMan");		
		
		Dimension dim = Toolkit.getDefaultToolkit().getScreenSize();
		int w = frame.getSize().width;
		int h = frame.getSize().height;
		int x = (dim.width-w)/2;
		int y = (dim.height-h)/2;
		frame.setLocation(x, y);
		frame.setVisible(true);
	}

	/**
	 * @param args
	 * 
	 */
	public static void main(String[] args) {
		new Main();
	}

}
